/**
 * Member entity class extended Customer
 */
package cult.ticketing.bean;

/**
 * @author 51158282
 *
 */
public class Member{
	private int id;
	private String email;
	private String pwd;
	private boolean loginStatus; //true: already logged in; false: not yet log in
	private int loyaltyPoint;
	private String role;

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public boolean getLoginStatus() {
        return loginStatus;
    }

    public void setLoginStatus(boolean loginStatus) {
        this.loginStatus = loginStatus;
    }

    public int getLoyaltyPoint() {
        return loyaltyPoint;
    }

    public void setLoyaltyPoint(int loyaltyPoint) {
        this.loyaltyPoint = loyaltyPoint;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }
	
/**

	public Member() {
		// TODO Auto-generated constructor stub
	}
	
	public Member(int id) {
		this.id = id;
	}
*/
        /*
	public Member(String email, String pwd) {
		this.email = email;
		this.pwd = pwd;
		
		 TODO select * from Member where email = this.email, pwd = this.pwd
		if (rs == null)
			ifPwdValid = false;
		else
		{
			ifPwdValid = true;
			this.loginStatus = Boolean.parseBoolean(rs.getString("loginStatus"));
			this.loyltyPoint = rs.getInt("loyaltyPoint");
			this.role = rs.getString("role");
			this.id = rs.getInt("id");
		}
		
	}

	public Member(int id, String email, boolean loginStatus, int loyaltyPoint) {
		this.id = id;
		this.email = email;
		this.loginStatus = loginStatus;
		this.loyaltyPoint = loyaltyPoint;
	}
*/

	
	
	
	
}
